package cn.bonoon.kernel.support.models;

/**
 * 用于treegrid，这个类是使用ajax的加载方式
 * @author jackson
 *
 */
public abstract class AbstractAjaxNode extends AbstractItem{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1745853278213353695L;
	
	public static final String OPEN = "open";
	public static final String CLOSED = "closed";
	
	private String state;
	private int size;
	
	public String getState() {
		return state;
	}
	
	/**
	 * <pre>
	 * 生成的json对象中必须包含state属性值为“closed”/“open”,
     * closed：表示有子节点。
     * open：表示没有子节点。
     * </pre>
	 */
	public void setState(String state) {
		this.state = state;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}
}
